﻿using System;

namespace TextEditor
{
    

    public class A_InsertXML : A_Action
    {
        public override string ActionName()
        {
            return "insertxml";
        }

        public override A_Action Clone()
        {
            A_InsertXML txml = new A_InsertXML();
            txml.BaseCloneFrom(this);
            return txml;
        }

        public override bool Execute()
        {
            base.myOwnerDocument.InsertByXML(base.Param1);
            return true;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.CanModify();
        }
    }
}

